#ifndef UTILS_PROFILE_PATH_HPP
#define UTILS_PROFILE_PATH_HPP

#ifdef WIN32
#include <windows.h>
#include <shlobj.h>
#include <shlwapi.h>
#endif // WIN32
#include <string>

namespace utils
{
	inline std::string profile_path()
	{
#ifdef WIN32
		char path[MAX_PATH];
		if( SUCCEEDED( ::SHGetFolderPathA( NULL, CSIDL_APPDATA, NULL, 0, path)))
		{
			::PathAppendA( path, "MiniCase");
			return path;
		}
		return std::string();

#else
#error Feature not supported
#endif
	}
} // namespace utils

#endif // UTILS_PROFILE_PATH_HPP
